﻿#region File Description
//-----------------------------------------------------------------------------
// RentitException.cs
//
// Author: ITU Team3 (2012)
//-----------------------------------------------------------------------------
#endregion

#region Using Statements
using System;
#endregion

namespace rentit03_server.Business
{
    /// <summary>
    /// Custom exeption for the rentit system
    /// </summary>
    public class RentitException : Exception
    {
        public RentitException(ReturnStatus status, string message) : base(message)
        {
            Status = status;
        }

        public RentitException(string message) : base(message) { }

        public RentitException(string message, Exception inner) : base(message,inner) { }

        public ReturnStatus Status { get; private set; }
    }
}